package com.ysd.lis.controller.eq;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.eq.EqPollingProject;
import com.ysd.lis.entity.eq.EqPollingStandard;
import com.ysd.lis.request.CommonPageDto;
import com.ysd.lis.request.eq.PollingProjectDto;
import com.ysd.lis.request.eq.PollingStandardDto;
import com.ysd.lis.service.eq.EqPollingProjectService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 设备管理-设备类型 前端控制器
 * </p>
 *
 * @author prs
 * @since 2024-07-31
 */
@RestController
@RequestMapping("/api/eq/eqPollingProject")
public class EqPollingProjectController extends BaseController {

    @Autowired
    EqPollingProjectService eqPollingProjectService;

    @ApiOperation("查询")
    @GetMapping("/findPollingProjectList")
    public Result findPollingProjectList(CommonPageDto param) {
        return eqPollingProjectService.findPollingProjectList(param);
    }


    @ApiOperation("新增")
    @PostMapping("/addPollingProject")
    public Result addPollingProject(@RequestBody EqPollingProject project){
        return  eqPollingProjectService.addPollingProject(project);
    }

    @ApiOperation("修改")
    @PostMapping("/editPollingProject")
    public Result editPollingProject(@RequestBody EqPollingProject project){
        return eqPollingProjectService.editPollingProject(project);
    }

    @ApiOperation("批量删除")
    @PostMapping("/batchDeletePollingProjectList")
    public Result batchDeletePollingProjectList(@RequestBody PollingProjectDto dto){
        return  eqPollingProjectService.batchDeletePollingProjectList(dto);
    }

}
